<?php

class MySQL extends MySQLi {

	public static $instance;

	public static function getInstance(){
		if(!isset(self::$instance)){
			self::$instance = new MySQL(
				DB_HOST,
				DB_USER,
				DB_PASSWORD,
				DB_DATABASE
			);
		}
		return self::$instance;
	}
}

?>